/**
 * Created by shudong.msd(风骐) on 2016/5/4.
 */


app.directive('dynamicAddEle',function(){

    return function(scope,ele,attr){
        var type = attr.dynType;
        if(type=='star'){
            scope.starsDynamicDom.addEleToSource(ele);
        }else if(type=='city'){
            scope.citiesDynamicDom.addEleToSource(ele);
        }

    };
});